import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('couponsort')
export class CouponSort {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  @ApiProperty({ description: '优惠券分类名称' })
  couponSortName: string;

  @Column({ nullable: true })
  @ApiProperty({ description: '选中图片' })
  activeImg?: string;

  @Column({ nullable: true })
  @ApiProperty({ description: '非选中图片' })
  rAactiveImg?: string;

  @Column({ nullable: true })
  @ApiProperty({ description: '备注' })
  remark?: string;
}
